package com.designPattern.foctory.factory;

public class Test {
    public static void main(String[] args) {
//        //通过InstanceFactoryBuilder创建InstanceFactory对象
//        //通过静态方法创建工厂
//        InstanceFactory instanceFactory = InstanceFactoryBuilder.getInstanceFactory(BadInstanceFactory.class.getName());
//        //通过InstanceFactory创建Instance对象
//        //通过工厂创建实例
//        Instance instance = instanceFactory.createInstance(BadInstance.class.getName());
//        instance.method1();
//        instance.method2();
    }
}
